package com.bigdata.clientstart;

import com.bigdata.client.RpcConsumer;
import com.bigdata.service.UserService;

public class ClientBootStrap {

   // public static final String providerName = "UserService#sayHello#";
    public static void main(String[] args) throws InterruptedException {
        RpcConsumer consumer = new RpcConsumer();
        UserService service = (UserService) consumer.createProxy(UserService.class);

        while (true){
           Thread.sleep(2000);
          //  System.out.println("ok ok");
            String s = service.sayHello("are you ok ?");
            System.out.println("客户端返回结果："+s);

        }
    }
}
